<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/17
 * Time: 23:17
 */

namespace app\api\model;

class BannerItem extends BaseModel
{
    protected $hidden = ['id', 'delete_time', 'update_time', 'img_id', 'banner_id'];
    public function img()
    {
        return $this -> belongsTo('image', 'img_id', 'id');
    }
}